Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept a fixed partition size for reset partition in autoinstall.yaml #1880

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

medicalwei
Copy link
Contributor

This changeset will allow reset_partition to accept int or human-readable disk size (e.g. "12G"), so that the size of reset partition can be fixed. This will be used for some OEM deployments and automated testing where overwriting or updating reset partition is necessary.

@medicalwei medicalwei force-pushed the fixed-reset-partition-size branch 2 times, most recently from 3a7c13d to c88b41a Compare December 18, 2023 20:14
@medicalwei
Copy link
Contributor Author

medicalwei commented Dec 18, 2023

There's some underlying serialization issues since attempting to union primitives upsets serialize.py as it seems only taking unions of non-primitive types. Is this intentional?

EDIT: new overridden commits fixed the issue.

@medicalwei medicalwei force-pushed the fixed-reset-partition-size branch 3 times, most recently from 3789b31 to 8edbf6d Compare December 18, 2023 21:38
@ogayot ogayot self-requested a review January 11, 2024 10:38
Copy link
Member

@ogayot ogayot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM! Just a few minor tweaks

subiquity/server/controllers/filesystem.py Show resolved Hide resolved
subiquity/server/controllers/tests/test_filesystem.py Outdated Show resolved Hide resolved
subiquity/server/controllers/filesystem.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@dbungert dbungert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see some doc/reference/autoinstall-reference.rst material for this, but then I see now that reset-partition isn't documented yet. Unfortunate. @medicalwei would you add some content for this in the reference and ignore the bit where the reset_partition bool isn't documented yet?

@medicalwei
Copy link
Contributor Author

@dbungert Reference added, and I hope my writing style doesn't look strange

@ogayot ogayot requested a review from mwhudson February 12, 2024 08:57
@dbungert dbungert merged commit 2883cad into canonical:main Feb 13, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants